package com.bruce.demo2.patterns.demo2.structural.demo08.decorator;

/**
 * @PROJECT_NAME: design_patterns
 * @DESCRIPTION: 配菜类
 * @AUTHOR: CNBruceLee
 * @DATE: 2021/7/25 21:22
 */
public abstract class Garnish extends FastFood {

    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, String desc, float price) {
        super(desc, price);
        this.fastFood = fastFood;
    }
}
